package com.opal.jx.entity.table;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class JxAssessTotalExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public JxAssessTotalExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andAssessYearIsNull() {
            addCriterion("assess_year is null");
            return (Criteria) this;
        }

        public Criteria andAssessYearIsNotNull() {
            addCriterion("assess_year is not null");
            return (Criteria) this;
        }

        public Criteria andAssessYearEqualTo(Integer value) {
            addCriterion("assess_year =", value, "assessYear");
            return (Criteria) this;
        }

        public Criteria andAssessYearNotEqualTo(Integer value) {
            addCriterion("assess_year <>", value, "assessYear");
            return (Criteria) this;
        }

        public Criteria andAssessYearGreaterThan(Integer value) {
            addCriterion("assess_year >", value, "assessYear");
            return (Criteria) this;
        }

        public Criteria andAssessYearGreaterThanOrEqualTo(Integer value) {
            addCriterion("assess_year >=", value, "assessYear");
            return (Criteria) this;
        }

        public Criteria andAssessYearLessThan(Integer value) {
            addCriterion("assess_year <", value, "assessYear");
            return (Criteria) this;
        }

        public Criteria andAssessYearLessThanOrEqualTo(Integer value) {
            addCriterion("assess_year <=", value, "assessYear");
            return (Criteria) this;
        }

        public Criteria andAssessYearIn(List<Integer> values) {
            addCriterion("assess_year in", values, "assessYear");
            return (Criteria) this;
        }

        public Criteria andAssessYearNotIn(List<Integer> values) {
            addCriterion("assess_year not in", values, "assessYear");
            return (Criteria) this;
        }

        public Criteria andAssessYearBetween(Integer value1, Integer value2) {
            addCriterion("assess_year between", value1, value2, "assessYear");
            return (Criteria) this;
        }

        public Criteria andAssessYearNotBetween(Integer value1, Integer value2) {
            addCriterion("assess_year not between", value1, value2, "assessYear");
            return (Criteria) this;
        }

        public Criteria andAssessMonthIsNull() {
            addCriterion("assess_month is null");
            return (Criteria) this;
        }

        public Criteria andAssessMonthIsNotNull() {
            addCriterion("assess_month is not null");
            return (Criteria) this;
        }

        public Criteria andAssessMonthEqualTo(Integer value) {
            addCriterion("assess_month =", value, "assessMonth");
            return (Criteria) this;
        }

        public Criteria andAssessMonthNotEqualTo(Integer value) {
            addCriterion("assess_month <>", value, "assessMonth");
            return (Criteria) this;
        }

        public Criteria andAssessMonthGreaterThan(Integer value) {
            addCriterion("assess_month >", value, "assessMonth");
            return (Criteria) this;
        }

        public Criteria andAssessMonthGreaterThanOrEqualTo(Integer value) {
            addCriterion("assess_month >=", value, "assessMonth");
            return (Criteria) this;
        }

        public Criteria andAssessMonthLessThan(Integer value) {
            addCriterion("assess_month <", value, "assessMonth");
            return (Criteria) this;
        }

        public Criteria andAssessMonthLessThanOrEqualTo(Integer value) {
            addCriterion("assess_month <=", value, "assessMonth");
            return (Criteria) this;
        }

        public Criteria andAssessMonthIn(List<Integer> values) {
            addCriterion("assess_month in", values, "assessMonth");
            return (Criteria) this;
        }

        public Criteria andAssessMonthNotIn(List<Integer> values) {
            addCriterion("assess_month not in", values, "assessMonth");
            return (Criteria) this;
        }

        public Criteria andAssessMonthBetween(Integer value1, Integer value2) {
            addCriterion("assess_month between", value1, value2, "assessMonth");
            return (Criteria) this;
        }

        public Criteria andAssessMonthNotBetween(Integer value1, Integer value2) {
            addCriterion("assess_month not between", value1, value2, "assessMonth");
            return (Criteria) this;
        }

        public Criteria andEmpGroupIsNull() {
            addCriterion("emp_group is null");
            return (Criteria) this;
        }

        public Criteria andEmpGroupIsNotNull() {
            addCriterion("emp_group is not null");
            return (Criteria) this;
        }

        public Criteria andEmpGroupEqualTo(String value) {
            addCriterion("emp_group =", value, "empGroup");
            return (Criteria) this;
        }

        public Criteria andEmpGroupNotEqualTo(String value) {
            addCriterion("emp_group <>", value, "empGroup");
            return (Criteria) this;
        }

        public Criteria andEmpGroupGreaterThan(String value) {
            addCriterion("emp_group >", value, "empGroup");
            return (Criteria) this;
        }

        public Criteria andEmpGroupGreaterThanOrEqualTo(String value) {
            addCriterion("emp_group >=", value, "empGroup");
            return (Criteria) this;
        }

        public Criteria andEmpGroupLessThan(String value) {
            addCriterion("emp_group <", value, "empGroup");
            return (Criteria) this;
        }

        public Criteria andEmpGroupLessThanOrEqualTo(String value) {
            addCriterion("emp_group <=", value, "empGroup");
            return (Criteria) this;
        }

        public Criteria andEmpGroupLike(String value) {
            addCriterion("emp_group like", value, "empGroup");
            return (Criteria) this;
        }

        public Criteria andEmpGroupNotLike(String value) {
            addCriterion("emp_group not like", value, "empGroup");
            return (Criteria) this;
        }

        public Criteria andEmpGroupIn(List<String> values) {
            addCriterion("emp_group in", values, "empGroup");
            return (Criteria) this;
        }

        public Criteria andEmpGroupNotIn(List<String> values) {
            addCriterion("emp_group not in", values, "empGroup");
            return (Criteria) this;
        }

        public Criteria andEmpGroupBetween(String value1, String value2) {
            addCriterion("emp_group between", value1, value2, "empGroup");
            return (Criteria) this;
        }

        public Criteria andEmpGroupNotBetween(String value1, String value2) {
            addCriterion("emp_group not between", value1, value2, "empGroup");
            return (Criteria) this;
        }

        public Criteria andAssessTypeIsNull() {
            addCriterion("assess_type is null");
            return (Criteria) this;
        }

        public Criteria andAssessTypeIsNotNull() {
            addCriterion("assess_type is not null");
            return (Criteria) this;
        }

        public Criteria andAssessTypeEqualTo(Integer value) {
            addCriterion("assess_type =", value, "assessType");
            return (Criteria) this;
        }

        public Criteria andAssessTypeNotEqualTo(Integer value) {
            addCriterion("assess_type <>", value, "assessType");
            return (Criteria) this;
        }

        public Criteria andAssessTypeGreaterThan(Integer value) {
            addCriterion("assess_type >", value, "assessType");
            return (Criteria) this;
        }

        public Criteria andAssessTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("assess_type >=", value, "assessType");
            return (Criteria) this;
        }

        public Criteria andAssessTypeLessThan(Integer value) {
            addCriterion("assess_type <", value, "assessType");
            return (Criteria) this;
        }

        public Criteria andAssessTypeLessThanOrEqualTo(Integer value) {
            addCriterion("assess_type <=", value, "assessType");
            return (Criteria) this;
        }

        public Criteria andAssessTypeIn(List<Integer> values) {
            addCriterion("assess_type in", values, "assessType");
            return (Criteria) this;
        }

        public Criteria andAssessTypeNotIn(List<Integer> values) {
            addCriterion("assess_type not in", values, "assessType");
            return (Criteria) this;
        }

        public Criteria andAssessTypeBetween(Integer value1, Integer value2) {
            addCriterion("assess_type between", value1, value2, "assessType");
            return (Criteria) this;
        }

        public Criteria andAssessTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("assess_type not between", value1, value2, "assessType");
            return (Criteria) this;
        }

        public Criteria andTotalMoneyIsNull() {
            addCriterion("total_money is null");
            return (Criteria) this;
        }

        public Criteria andTotalMoneyIsNotNull() {
            addCriterion("total_money is not null");
            return (Criteria) this;
        }

        public Criteria andTotalMoneyEqualTo(String value) {
            addCriterion("total_money =", value, "totalMoney");
            return (Criteria) this;
        }

        public Criteria andTotalMoneyNotEqualTo(String value) {
            addCriterion("total_money <>", value, "totalMoney");
            return (Criteria) this;
        }

        public Criteria andTotalMoneyGreaterThan(String value) {
            addCriterion("total_money >", value, "totalMoney");
            return (Criteria) this;
        }

        public Criteria andTotalMoneyGreaterThanOrEqualTo(String value) {
            addCriterion("total_money >=", value, "totalMoney");
            return (Criteria) this;
        }

        public Criteria andTotalMoneyLessThan(String value) {
            addCriterion("total_money <", value, "totalMoney");
            return (Criteria) this;
        }

        public Criteria andTotalMoneyLessThanOrEqualTo(String value) {
            addCriterion("total_money <=", value, "totalMoney");
            return (Criteria) this;
        }

        public Criteria andTotalMoneyLike(String value) {
            addCriterion("total_money like", value, "totalMoney");
            return (Criteria) this;
        }

        public Criteria andTotalMoneyNotLike(String value) {
            addCriterion("total_money not like", value, "totalMoney");
            return (Criteria) this;
        }

        public Criteria andTotalMoneyIn(List<String> values) {
            addCriterion("total_money in", values, "totalMoney");
            return (Criteria) this;
        }

        public Criteria andTotalMoneyNotIn(List<String> values) {
            addCriterion("total_money not in", values, "totalMoney");
            return (Criteria) this;
        }

        public Criteria andTotalMoneyBetween(String value1, String value2) {
            addCriterion("total_money between", value1, value2, "totalMoney");
            return (Criteria) this;
        }

        public Criteria andTotalMoneyNotBetween(String value1, String value2) {
            addCriterion("total_money not between", value1, value2, "totalMoney");
            return (Criteria) this;
        }

        public Criteria andRemarksIsNull() {
            addCriterion("remarks is null");
            return (Criteria) this;
        }

        public Criteria andRemarksIsNotNull() {
            addCriterion("remarks is not null");
            return (Criteria) this;
        }

        public Criteria andRemarksEqualTo(String value) {
            addCriterion("remarks =", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotEqualTo(String value) {
            addCriterion("remarks <>", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksGreaterThan(String value) {
            addCriterion("remarks >", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksGreaterThanOrEqualTo(String value) {
            addCriterion("remarks >=", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksLessThan(String value) {
            addCriterion("remarks <", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksLessThanOrEqualTo(String value) {
            addCriterion("remarks <=", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksLike(String value) {
            addCriterion("remarks like", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotLike(String value) {
            addCriterion("remarks not like", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksIn(List<String> values) {
            addCriterion("remarks in", values, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotIn(List<String> values) {
            addCriterion("remarks not in", values, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksBetween(String value1, String value2) {
            addCriterion("remarks between", value1, value2, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotBetween(String value1, String value2) {
            addCriterion("remarks not between", value1, value2, "remarks");
            return (Criteria) this;
        }

        public Criteria andCreatedIsNull() {
            addCriterion("created is null");
            return (Criteria) this;
        }

        public Criteria andCreatedIsNotNull() {
            addCriterion("created is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedEqualTo(Date value) {
            addCriterion("created =", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedNotEqualTo(Date value) {
            addCriterion("created <>", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedGreaterThan(Date value) {
            addCriterion("created >", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedGreaterThanOrEqualTo(Date value) {
            addCriterion("created >=", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedLessThan(Date value) {
            addCriterion("created <", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedLessThanOrEqualTo(Date value) {
            addCriterion("created <=", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedIn(List<Date> values) {
            addCriterion("created in", values, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedNotIn(List<Date> values) {
            addCriterion("created not in", values, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedBetween(Date value1, Date value2) {
            addCriterion("created between", value1, value2, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedNotBetween(Date value1, Date value2) {
            addCriterion("created not between", value1, value2, "created");
            return (Criteria) this;
        }

        public Criteria andModifyIsNull() {
            addCriterion("modify is null");
            return (Criteria) this;
        }

        public Criteria andModifyIsNotNull() {
            addCriterion("modify is not null");
            return (Criteria) this;
        }

        public Criteria andModifyEqualTo(Date value) {
            addCriterion("modify =", value, "modify");
            return (Criteria) this;
        }

        public Criteria andModifyNotEqualTo(Date value) {
            addCriterion("modify <>", value, "modify");
            return (Criteria) this;
        }

        public Criteria andModifyGreaterThan(Date value) {
            addCriterion("modify >", value, "modify");
            return (Criteria) this;
        }

        public Criteria andModifyGreaterThanOrEqualTo(Date value) {
            addCriterion("modify >=", value, "modify");
            return (Criteria) this;
        }

        public Criteria andModifyLessThan(Date value) {
            addCriterion("modify <", value, "modify");
            return (Criteria) this;
        }

        public Criteria andModifyLessThanOrEqualTo(Date value) {
            addCriterion("modify <=", value, "modify");
            return (Criteria) this;
        }

        public Criteria andModifyIn(List<Date> values) {
            addCriterion("modify in", values, "modify");
            return (Criteria) this;
        }

        public Criteria andModifyNotIn(List<Date> values) {
            addCriterion("modify not in", values, "modify");
            return (Criteria) this;
        }

        public Criteria andModifyBetween(Date value1, Date value2) {
            addCriterion("modify between", value1, value2, "modify");
            return (Criteria) this;
        }

        public Criteria andModifyNotBetween(Date value1, Date value2) {
            addCriterion("modify not between", value1, value2, "modify");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}